﻿//05.Write a program that asks for a digit and depending on the input 
//shows the name of that digit (in English) using a switch statement.

using System;

namespace EnglishName
{
    class EnglishDigit
    {
        static void Main()
        {
            Console.Write("Please enter a number 0 - 10: ");
            byte n = byte.Parse(Console.ReadLine());

            if (n >= 0 && n <= 10)
            {
                switch (n)
                {
                    case 1: Console.WriteLine("One"); break;
                    case 2: Console.WriteLine("Two"); break;
                    case 3: Console.WriteLine("Three"); break;
                    case 4: Console.WriteLine("Four"); break;
                    case 5: Console.WriteLine("Five"); break;
                    case 6: Console.WriteLine("Six"); break;
                    case 7: Console.WriteLine("Seven"); break;
                    case 8: Console.WriteLine("Eight"); break;
                    case 9: Console.WriteLine("Nine"); break;
                    case 10: Console.WriteLine("Ten"); break;
                    default: Console.WriteLine("Zero"); break;
                }
            }
            else
            {
                Console.WriteLine("Incorrect input!");
            }
        }
    }
}
